package com.mezz.bones.framework.web.handler.login.info;

import cn.hutool.core.util.StrUtil;
import com.mezz.bones.framework.base.context.RequestContextHolder;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author: zhuang
 * @Date: 2024/11/22 10:01
 * @Description: TODO
 * @Version: 1.0
 **/

@Slf4j
public class DefaultRequestLoginUserInfoHandler implements RequestLoginUserInfoHandler{

    @Override
    public RequestContextHolder.RequestLoginUserInfo getLoginUserInfo(String loginId) {

        if(StrUtil.isBlank(loginId)){
            return new RequestContextHolder.RequestLoginUserInfo("guess","游客");
        }

        return new RequestContextHolder.RequestLoginUserInfo("用户账号-默认","用户昵称-默认");
    }
}
